* { 
    margin: 0; 
    box-sizing: border-box;
}
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
}
label {
    margin: 0;
}
/* ==== a标签默认样式消除 */
// a {
//     text-decoration: none;
//     color: inherit;
// }
hr {
    margin: 10px 0;
}

#app {
    width: 100%;
    height: 100%;
}

/* ==== 工具类 */
// 清除浮动
.clearfix:after {
    content:"";
    display:block;
    visibility:hidden;
    clear:both;
}
.flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
/* 禁止选择文字 */
.noselect { 
	user-select: none; 
	-ms-user-select: none; 
	-moz-user-select: none; 
	-webkit-user-select: none; 
	-o-user-select: none; 
}
.hide {
    display: none !important;
}

/* === 美化滚动条 开始 =============== */
// 默认黑色系
::-webkit-scrollbar {
    width: 6px;
    height: 4px;
    background-color: #2E2E2E;
}
/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background: #2E2E2E;
}
/*定义滑块 内阴影+圆角*/  
::-webkit-scrollbar-thumb {
    border-radius: 3px;
    box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #464646;
}
::-webkit-scrollbar-thumb:hover {
    border-radius: 3px;
    box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #464646;
}

// 白色系
/* y轴滚动条宽 */
.scrollbar-white::-webkit-scrollbar {
    width: 6px;
}
/* 轨道 */
.scrollbar-white::-webkit-scrollbar-track:vertical {
    background: white;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
}
/* 滑块 */
.scrollbar-white::-webkit-scrollbar-thumb:vertical {
    background: #E9E7E9;
    border-radius: 3px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
}

/* x轴滚动条高 */
.scrollbar-white::-webkit-scrollbar:horizontal {
    height: 6px;
}
/* 轨道 */
.scrollbar-white::-webkit-scrollbar-track:horizontal {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
    background: white;
}
/* 滑块 */
.scrollbar-white::-webkit-scrollbar-thumb:horizontal {
    border-radius: 3px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
    background: #E9E7E9;
}
/* === 美化滚动条 结束 =============== */

#debug-btn {
    opacity: 0;
    // display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    background: white;
    font-size: 12px;
    button {
        padding: 0;
        margin: 0;
    }
}
#debug-btn:hover {
    opacity: 1;
}

.page {
    margin: 10px;
    padding: 10px;
    border: 1px solid red;
}
.component {
    margin: 10px;
    padding: 10px;
    border: 1px solid green;
}